import instance from "@/utils/HttpUtils.js";
import qs from "qs";

export default {
  // 获取员工列表
  getEmployeeList(data) {
    return instance.get("/employee/findEmployeeByPage?"+qs.stringify(data));
  },
  // 新增员工
  addEmployee(data) {
    return instance.post("/employee/saveEmployee", data);
  },
  // 编辑员工
  updateEmployee(data) {
    return instance.put("/employee/updateEmployee", data); 
  },

  //启用禁用员工
  updateEmployeeStatus(data){
    return instance.put("/employee/updateDelEmployee", data); 
  },
  
  // 删除员工
  deleteEmployee(data) {
    return instance.delete("/employee/deleteEmployee?id="+ data); 
  },

}

